#include <bits/stdc++.h>
using namespace std;
int n, m;

int main() {
    cin >> n >> m;
    int cnt = 1;
    for (int i = 1; i <= m; i++)
        cnt *= n;
        
    cout << cnt;
    return 0;
}